<template>
    <div class="box">
      <div class="logo">网易云音乐</div>
        <div :v-model="activePath" class="head">
            <div @click="$router.push('/Recommend')">推荐音乐</div>
            <div @click="$router.push('/hotsong')">热歌榜</div>
            <div @click="$router.push('/search')">搜索</div>
        </div>
        <router-view ></router-view>
    </div>
</template>

<script>
export default {
  data () {
    return {
      activePath: `/${this.$route.path.split('/')[1]}`,
    };
  }
}
</script>

<style scoped>
    .box {
      width: 100%;
      flex:1;
    }
     .head {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: space-around;
    margin-top:12px;
    font-size:20px
  }
  .logo {
    width: 100%;
    height: 50px;
    background-color:red;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size:30px;
    /* position: fixed;
    top: 0;
    left: 0; */
   
  }
</style>